package com.lagou.demo.service;

import com.lagou.demo.dao.UserDao;
import com.lagou.demo.dao.UserDaoImp;
import com.lagou.demo.pojo.User;
/**
 * 定义StudentService调用studentDao的实现类实现登陆方法
 */
public class UserService {
    private UserDao userDao;

    public UserService() {
        this.userDao = new UserDaoImp();
    }

    public User LoginService(User user){
       return userDao.userLogin(user);
    }
}
